package com.web.controller;

import java.io.IOException;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.biz.TUsertypeBIZ;
import com.entity.TUsertype;

@Controller
public class TUsertypeController {
	
	private TUsertypeBIZ tUsertypeBIZ;
	@Resource
	public void settUsertypeBIZ(TUsertypeBIZ tUsertypeBIZ) {
		this.tUsertypeBIZ = tUsertypeBIZ;
	}
	
	@RequestMapping("/doAddUserType.do")
	public void doAddUserType(HttpServletRequest request,HttpServletResponse response) throws IOException{
		TUsertype tUsertype = new TUsertype();
		this.tUsertypeBIZ.save(tUsertype);
	}
	
}
